//console.log(123);
let words:string[]=["ad","bd","aaab","baa","badab"]
let allwed:string="ad"
let wordss:any[]=[]
words.forEach((item:string, index:number) => {
    if(allwed.includes(item)){
       wordss.push(item)
    }
    console.log( wordss.length,"wordss");
})

let url:string="http://examp.com/index.html?a=1&c=3&d"
let result:string=''
let arr:string="a"

let  brr:number[]=[1,2,1]
let crr:number[]=[]
function fors(brr:number[]){
    brr.forEach((item:number, index:number) => {
       if(brr.includes(item)){
           crr.push(item)
       }
       console.log(crr,"crr");
       
    })
}
fors(brr)


class Greeter {
    name: number;
    constructor(name: number) {
        this.name = name;
    }
    greet() {
        return "Hello, " + this.name;
    }
}

class Person extends Greeter{
    list:string;
    constructor(name:number){
        super(name)
        this.list="name"
    }
    getList(){
        return this.list
    }
}
let newPerson=new Person(1234567)
console.log(newPerson,"newPerson");